/**
 * @author wangmao
 * @date 2021/11/8 11:33
 */
/// <reference path="validation.ts"/>

namespace Validation {
    const lettersRegexp = /^[A-Za-z]+$/;
    export class LettersOnlyValidator implements StringValidation {
        public isAcceptable(s: string): boolean {
            return lettersRegexp.test(s)
        }
    }
    class WorldOnlyValidator implements StringValidation {
        public isAcceptable(s: string): boolean {
            return lettersRegexp.test(s)
        }
    }
}
